import 'package:flutter/material.dart';

class SettingPage extends StatefulWidget {
  SettingPage({Key key}) : super(key: key);

  @override
  _SettingPageState createState() => _SettingPageState();
}

class _SettingPageState extends State<SettingPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('设置'),
      ),
      body: Container(
        //自适应
        width: double.infinity,
        padding: EdgeInsets.all(15.0),
        child: RaisedButton(
            child: Text('退出登录'), 
            color: Colors.blue[300],
             onPressed: () {
               Navigator.pushNamed(context, '/login');
             }),
      ),
    );
  }
}